<template>
  <!-- 导航条 -->
  <div class="nav-bar">
    <span class="iconfont iconjiantou2" @click="$router.back()"></span>
    <strong>{{title}}</strong>
    <span class="iconfont iconwode" @click="$router.push('/')" v-if="showhome"></span>
    <span v-else class="iconfont iconwode" style="opacity:0"></span>
  </div>
</template>

<script>
export default {
  props: ["title", "showhome"],
};
</script>

<style lang='less' scoped>
.nav-bar {
  height: 48/360 * 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20/360 * 100vw;
  padding-right: 20/360 * 100vw;
}
</style>